#include "sharea.h"

ShareA::ShareA() {}


// 实现导出函数
extern "C" {

    SHAREA_EXPORT void* createShareAInstance() {
        return new ShareA();
    }

    SHAREA_EXPORT void destroyShareAInstance(void* instance) {
        if (instance) {
            delete static_cast<ShareA*>(instance);
        }
    }

    SHAREA_EXPORT void printMessage(void* instance) {
        if (instance) {
            static_cast<ShareA*>(instance)->print();
        }
    }

}
